package com.javasea.log4j2;

import com.javasea.log4j2.util.IPUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 运营管理平台启动类
 *
 * @author: 伍波
 * @Date: 2023/1/31 10:36
 * @Version 1.0
 *
 * @version 1.0 2023/1/31 10:36
 */
@SpringBootApplication
public class Log4j2Application {

    public static void main(String[] args) {
        // 设置子线程读取MDC变量
        System.setProperty("log4j2.isThreadContextMapInheritable", "true");
        System.setProperty("local-ip", IPUtils.LOCAL_IPADDR);
        SpringApplication app = new SpringApplication(Log4j2Application.class);
        app.run(args);
    }

}
